class MSUser {
  String? token;
  String? userId;

  String? avatarUrl;
  String? avatarMiddleThumbUrl;
  String? avatarThumbUrl;

  String? nickname;
  String? birthday;
  String? country;
  int? availableCoins = 0;
  int? isFirstRegister;
  MSUser(
      this.token,
      this.userId,
      this.avatarUrl,
      this.avatarMiddleThumbUrl,
      this.avatarThumbUrl,
      this.nickname,
      this.birthday,
      this.country,
      this.availableCoins);
  factory MSUser.fromJson(Map<String, dynamic> map) {
    return MSUser(
        map["token"],
        map["userId"],
        map["avatarUrl"],
        map["avatarMiddleThumbUrl"],
        map["avatarThumbUrl"],
        map["nickname"],
        map["birthday"],
        map["country"],
        map["availableCoins"]);
  }
}
